﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace Weazel.Gezel.Model.Errors
{
  public class VerificationError : Error
  {
    private VerificationErrorType errorType;

    #region Properties
    public VerificationErrorType ErrorType
    {
      get
      {
        return errorType;
      }
    }
    #endregion

    public VerificationError(VerificationErrorType errorType) : 
      this(errorType, new ErrorMessage(errorType.ToString()))
    {
    }

    public VerificationError(VerificationErrorType errorType, ErrorMessage message) : base(message)
    {
      this.errorType = errorType;
    }

    public override string ToString()
    {
      return errorMessage.ToString();
    }
  }
}
